Skip to content

feat(ex_unit_test): support Windows - #5

Open
TrapsterDK wants to merge 1 commit into
bazelverse:mainfrom
TrapsterDK:windows-ex-unit-test
Open

TrapsterDK wants to merge 1 commit into
bazelverse:mainfrom
TrapsterDK:windows-ex-unit-test

Conversation

@TrapsterDK

Copy link
Copy Markdown

ex_unit_test fails on Windows with fail("not implemented"). This writes a .bat runner there instead.

  • It uses the Elixir and Erlang homes from the toolchain. A relative Elixir home is made absolute before the script changes directory.
  • It needs an external Erlang. With an Erlang that has to be unpacked, it fails with "ex_unit_test on Windows needs an external Erlang".
  • It keeps the check that fails a suite that ran no tests and excluded none.
  • It adds a test-windows CI job for the ex_unit_test targets in test/, plus checks that the failing and empty tests fail.

Not run yet: the Windows job has not run, so the absolute path check and an external OTP toolchain on Windows are unproven. The Unix branch is unchanged.

Targets with elixir_app deps are left out of the Windows job. bin/elixir misreads paths under Git Bash, so elixirc would not work there.

Assisted by Claude.

Generate a .bat runner on Windows instead of failing with "not implemented".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant